/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package ru.ibrae.excelparser1.excelstorageentities.entities;

/**
 *
 * @author murr
 */
public class ExcelField {
    //~ Instance fields --------------------------------------------------------

    private Integer rowNumber;
    private MchsLetter mchsLetter;
    private ExcelFieldFlags flags = new ExcelFieldFlags();

    //~ Constructors -----------------------------------------------------------
    public ExcelField(Integer rowNumber, MchsLetter mchsLetter) {
        this.rowNumber = rowNumber;
        this.mchsLetter = mchsLetter;
    }

    public ExcelField() {
    }

    //~ Methods ----------------------------------------------------------------
    public void setMchsLetter(MchsLetter mchsLetter) {
        this.mchsLetter = mchsLetter;
    }

    public void setRowNumber(Integer rowNumber) {
        this.rowNumber = rowNumber;
    }

    public MchsLetter getMchsLetter() {
        return mchsLetter;
    }

    public Integer getRowNumber() {
        return rowNumber;
    }

    public ExcelFieldFlags getFlags() {
        return flags;
    }

    //~ Inner Classes ----------------------------------------------------------
    public static class ExcelFieldFlags {

        private boolean certificateChecked = false;
        protected boolean personChecked = false;

        public boolean isPersonChecked() {
            return personChecked;
        }

        public void setPersonChecked(boolean personChecked) {
            this.personChecked = personChecked;
        }

        public boolean isCertificateChecked() {
            return certificateChecked;
        }

        public void setCertificateChecked(boolean certificateChecked) {
            this.certificateChecked = certificateChecked;
        }
    }
}
